package com.tj.template.application.trade.input;

import com.fqgj.common.api.ParamsObject;
import com.tj.bo.common.conf.util.ParamsValidateUtil;
import org.apache.commons.lang3.StringUtils;

/**
 * @program: binary-option
 * @description
 * @author: binary
 * @create: 2020-06-11 11:20
 **/
public class TradeDetailRequest extends ParamsObject {

    private String tradeNo;

    public String getTradeNo() {
        return tradeNo;
    }

    public TradeDetailRequest setTradeNo(String tradeNo) {
        this.tradeNo = tradeNo;
        return this;
    }

    @Override
    public void validate() {
        ParamsValidateUtil.checkParams(StringUtils.isBlank(tradeNo), "tradeNo can not be empty");
    }
}
